package cn.kgc.crowdfundingadmin2.mapper;

import cn.kgc.crowdfundingadmin2.pojo.Role;
import cn.kgc.crowdfundingadmin2.pojo.RoleExample;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    public void updateRole(Role role);

    public void saveRole(String roleName);

    public void batchRemove(List<Integer> roleIdList);

    public List<Role> getRoleListByIdList(List<Integer> roleIdList);

    public PageInfo<Role> queryForKeywordWithPage(
            Integer pageNum,
            Integer pageSize,
            String keyword);

    int countByExample(RoleExample example);

    int deleteByExample(RoleExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    int insertSelective(Role record);

    List<Role> selectByExample(RoleExample example);

    Role selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") Role record, @Param("example") RoleExample example);

    int updateByExample(@Param("record") Role record, @Param("example") RoleExample example);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);
}